<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2017/8/27
 * Time: 下午11:03
 */

namespace Mq\model;


use MongoDB\Driver\Command;
use MongoDB\Driver\Query;

class Meng extends BaseModel
{

    public $tableName = 'meng';

    /**
     * 获取所有的信息
     * @return \MongoDB\Driver\Cursor
     */
    public function getAllInfo()
    {
        $filter = [];
        $options = ['limit' => 1, 'skip' => 0];
        $query = new Query($filter, $options);
        return $this->db->executeQuery($this->dbName . "." . $this->tableName, $query);
    }
}